﻿@{
    Layout = "~/Views/Shared/_ch.cshtml";
}

<body class="login-page">
    <div class="login-box">
        <div class="login-logo">
            <a href="">闵行智慧园区管理系统</a>
        </div><!-- /.login-logo -->
        <div class="login-box-body">
            <form action="/Main/login" method="post">
                <div class="form-group has-feedback">
                    <input type="text" class="form-control" name="name" placeholder="用户ID/手机号/邮箱账号" />
                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                </div>
                <div class="form-group has-feedback">
                    <input type="password" class="form-control" name="pwd" placeholder="密码" />
                    <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
                    </div><!-- /.col -->
                    <div class="col-xs-12 text-center ">
                        @if (ViewBag.Msg != null)
                        {
                            <br />
                            <span>@ViewBag.Msg</span>
                        }
                    </div><!-- /.col -->
                </div>
            </form>
        </div><!-- /.login-box-body -->
    </div><!-- /.login-box -->
    <!-- jQuery 2.1.4 -->
    <script src="../../plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <!-- Bootstrap 3.3.2 JS -->
    <script src="../../bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!-- iCheck -->
    <script src="../../plugins/iCheck/icheck.min.js" type="text/javascript"></script>
    <script src="~/Scripts/All.js"></script>
    <script>
        $(function () {
            GetClientIp();
            if (window.localStorage["ClientIp"] == null || window.localStorage["ClientIp"] == "") {
                GetClientIp();
            }
            $('input').iCheck({
                checkboxClass: 'icheckbox_square-blue',
                radioClass: 'iradio_square-blue',
                increaseArea: '20%' // optional
            });
        });
    </script>
</body>
